package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * ApiRequestWinnersListData
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class ApiRequestWinnersListData   {
  /**
   * 排名类型；MONTHLY_SQLES：产品月度销售；ANNUAL_SALES：产品年度销售；ADD_VALID_ACCOUNTS：净增有些用户；NEW_ADD_ASSETS：新开户净增资产
   */
  public enum RankingTypeEnum {
    MONTHLY_SQLES("MONTHLY_SQLES"),
    
    ANNUAL_SALES("ANNUAL_SALES"),
    
    ADD_VALID_ACCOUNTS("ADD_VALID_ACCOUNTS"),
    
    NEW_ADD_ASSETS("NEW_ADD_ASSETS");

    private String value;

    RankingTypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static RankingTypeEnum fromValue(String text) {
      for (RankingTypeEnum b : RankingTypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("rankingType")
  private RankingTypeEnum rankingType = null;

  @JsonProperty("date")
  private String date = null;

  /**
   * 查询范围；ALL_STAFF：所有员工；DEPARTMENT：营业部内
   */
  public enum QueryScopeEnum {
    ALL_STAFF("ALL_STAFF"),
    
    DEPARTMENT("DEPARTMENT");

    private String value;

    QueryScopeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static QueryScopeEnum fromValue(String text) {
      for (QueryScopeEnum b : QueryScopeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("queryScope")
  private QueryScopeEnum queryScope = null;

  public ApiRequestWinnersListData rankingType(RankingTypeEnum rankingType) {
    this.rankingType = rankingType;
    return this;
  }

  /**
   * 排名类型；MONTHLY_SQLES：产品月度销售；ANNUAL_SALES：产品年度销售；ADD_VALID_ACCOUNTS：净增有些用户；NEW_ADD_ASSETS：新开户净增资产
   * @return rankingType
  **/
  @ApiModelProperty(example = "ALL_STAFF", value = "排名类型；MONTHLY_SQLES：产品月度销售；ANNUAL_SALES：产品年度销售；ADD_VALID_ACCOUNTS：净增有些用户；NEW_ADD_ASSETS：新开户净增资产")


  public RankingTypeEnum getRankingType() {
    return rankingType;
  }

  public void setRankingType(RankingTypeEnum rankingType) {
    this.rankingType = rankingType;
  }

  public ApiRequestWinnersListData date(String date) {
    this.date = date;
    return this;
  }

  /**
   * 月份日期
   * @return date
  **/
  @ApiModelProperty(example = "201902", value = "月份日期")


  public String getDate() {
    return date;
  }

  public void setDate(String date) {
    this.date = date;
  }

  public ApiRequestWinnersListData queryScope(QueryScopeEnum queryScope) {
    this.queryScope = queryScope;
    return this;
  }

  /**
   * 查询范围；ALL_STAFF：所有员工；DEPARTMENT：营业部内
   * @return queryScope
  **/
  @ApiModelProperty(example = "ALL_STAFF", value = "查询范围；ALL_STAFF：所有员工；DEPARTMENT：营业部内")


  public QueryScopeEnum getQueryScope() {
    return queryScope;
  }

  public void setQueryScope(QueryScopeEnum queryScope) {
    this.queryScope = queryScope;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ApiRequestWinnersListData apiRequestWinnersListData = (ApiRequestWinnersListData) o;
    return Objects.equals(this.rankingType, apiRequestWinnersListData.rankingType) &&
        Objects.equals(this.date, apiRequestWinnersListData.date) &&
        Objects.equals(this.queryScope, apiRequestWinnersListData.queryScope);
  }

  @Override
  public int hashCode() {
    return Objects.hash(rankingType, date, queryScope);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ApiRequestWinnersListData {\n");
    
    sb.append("    rankingType: ").append(toIndentedString(rankingType)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    queryScope: ").append(toIndentedString(queryScope)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

